#ifndef GPXPARSER_H
#define GPXPARSER_H

#include <QXmlStreamReader>
#include <QFile>

#include <vector>
using std::vector;
#include <string>
using std::string;

#include "cache.h"
#include "cachesorter.h"

class GPXParser
{
public:
    GPXParser();
    void parseFile(QString fileName);
    vector<cache> getCaches();

private:
    void parseWaypoint(QXmlStreamReader& xml);

private:

    vector<cache>   caches;
};

#endif // GPXPARSER_H
